import * as types from './types';

const state = {
  loginMask: false,
  registerMask: false,
  getSvgCaptcha: ""
};

import getters from './getters'

const mutations = {
  [types.LOGIN](state, res) {
    state.loginMask = res.loginMask;
    state.getSvgCaptcha = res;
  },
  [types.REGISTER](state, res) {
    state.registerMask = res.registerMask;
  }
};

export default {
  state,
  mutations,
  getters
};
